package com.xbongbong.saas.enums.business;

import lombok.Getter;

/**
 * @title: FineClueContactInfoEnum
 * @projectName xbb-pro
 * @description: TODO
 * @author: zhushuainan
 * @date 2021/11/23 21:02
 */
@Getter
public enum FineClueContactInfoEnum {

    QQ("qq","qq"),
    MOBILE("mobile","手机"),
    WECHAT("wechat","微信"),
    FAX("fax","传真"),
    FIXEDTELEPHONE("fixedTelephone","固定电话"),
    EMAIL("email","邮箱"),
    OTHER("other","其他");

    private String enName;

    private String name;

    FineClueContactInfoEnum(String enName, String name) {
        this.enName = enName;
        this.name = name;
    }

    public static FineClueContactInfoEnum getEnum(String enName){
        FineClueContactInfoEnum resultEnum = null;
        switch (enName){
            case "qq" : 
                resultEnum = FineClueContactInfoEnum.QQ;
                break;
            case "mobile" : 
                resultEnum = FineClueContactInfoEnum.MOBILE;
                break;
            case "wechat" : 
                resultEnum = FineClueContactInfoEnum.WECHAT;
                break;
            case "fax" :
                resultEnum = FineClueContactInfoEnum.FAX;
                break;
            case "fixedTelephone" :
                resultEnum = FineClueContactInfoEnum.FIXEDTELEPHONE;
                break;
            case "email" :
                resultEnum = FineClueContactInfoEnum.EMAIL;
                break;
            case "other" :
                resultEnum = FineClueContactInfoEnum.OTHER;
                break;
            default:
                resultEnum = null;
        }
        return resultEnum;
    }
}
